package com.gitee.chili.leisure.server;

import org.springframework.stereotype.Component;

/**
 * GamingStartServer
 *
 * @author week solider
 * @since 2020-07-21
 */

@Component
public class ServerManager {

    private final BootstrapServer bootstrapServer;

    public ServerManager(BootstrapServer bootstrapServer) {
        this.bootstrapServer = bootstrapServer;
    }

    public void start() {
        bootstrapServer.start();
    }

    public void close(){
        bootstrapServer.shutdown();
    }
}
